home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_004 / kermit / usage.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  58 lines

  1. /*    @(#)usage.c    1.1    1/26/85    */
  2.  
  3. #include "kermit.h"
  4.  
  5.  
  6. static char *documentation[] = {
  7.     "",
  8.     "DESCRIPTION:",
  9.     "",
  10.     "\tKermit allows two machines to communicate via a serial line.",
  11.     "\tIt features transmission and reception of ASCII files using",
  12.     "\tpackets (with checksums) and retransmission of lost",
  13.     "\tor corrupted packets.",
  14.     "",
  15.     "SYNOPSIS:",
  16.     "",
  17.     "\tkermit [-chmrRst] [-b baud] [-e esc] [-l line] [-p photo] [files]",
  18.     "",
  19.     "\t\tb     =>   set baud rate to <baud>",
  20.     "\t\tc     =>   connect to other machine (^D to escape)",
  21.     "\t\te     =>   set escape character to <esc>",
  22.     "\t\th     =>   print this help message",
  23.     "\t\tl     =>   set communications line to file <line>",
  24.     "\t\tm     =>   map upper case to lower case in filenames",
  25.     "\t\tp     =>   capture all incoming characters in file <photo>",
  26.     "\t\tr     =>   receive files from other machine",
  27.     "\t\tR     =>   this kermit is running on remote machine",
  28.     "\t\ts     =>   send files to other machine",
  29.     "\t\tt     =>   trace progress by output to stdout",
  30.     "",
  31.     NULL
  32. };
  33.  
  34.  
  35. VOID Usage ()
  36. {
  37.     DBUG_ENTER ("Usage");
  38.     (VOID) fprintf (stderr,
  39.     "usage: kermit [-chmRrst] [-b baud] [-e esc] [-l line] [-p photo] [files]\n");
  40.     (VOID) fprintf (stderr,"       kermit -h for help\n");
  41.     WrapUp (0);
  42.     DBUG_VOID_RETURN;
  43. }
  44.  
  45.  
  46. VOID Help ()
  47. {
  48.     register char **dp;
  49.  
  50.     DBUG_ENTER ("Help");
  51.     dp = documentation;
  52.     while (*dp != NULL) {
  53.     (VOID) printf ("%s\n", *dp++);
  54.     }
  55.     DBUG_VOID_RETURN;
  56. }
  57.  
  58.